const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token, // 建立token的快捷访问
    userInfo: state => state.user.userInfo, // 建立用户名的快捷访问
    userId: state => state.user.userInfo.userId, // 建立访问用户id的快捷访问
    name: state => state.user.userInfo.username, // 建立访问用户name的快捷访问
    photo: state => state.user.userInfo.staffPhoto, // 建立访问用户头像的快捷访问
    companyId: state => state.user.userInfo.companyId, // 建立访问公司ID的快捷访问
    routes: state => state.permission.routes // 建立访问动态路由的快捷访问
}
export default getters